package proxy

import (
	"net/http"
	"net/http/httputil"
	"net/url"
)

type HttpProxy interface {
	ServeHTTP(w http.ResponseWriter, r *http.Request)
}
type httpProxyImpl struct {
	target *url.URL
	proxy  *httputil.ReverseProxy
}

func (i *httpProxyImpl) ServeHTTP(w http.ResponseWriter, r *http.Request) {
	i.proxy.ServeHTTP(w, r)
}
